package com.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ComponentScan({"com.config" ,"com.service","com.action"})
@MapperScan("com.dao")
@ImportResource("classpath:spring-transaction.xml")
public class MainBoot extends SpringBootServletInitializer {



    public static void main(String[] args) {

        SpringApplication.run(MainBoot.class);

    }
}
